package Thread;

public class ThreadDemo17 {
    public static void main(String[] args) {
        Thread thread1 = new Thread(()->{
            System.out.println(Thread.currentThread().getId()+","+Thread.currentThread().getName());
        },"xmy");
        Thread thread2 = new Thread(()->{
            System.out.println(Thread.currentThread().getId()+","+Thread.currentThread().getName());
        },"xzh");
        thread1.start();
        thread2.start();
    }
}
